#!/bin/sh
ping -c 5 114.114.114.114 
if [ "$?" != "0" ]; then
   reboot  
else
   echo "network OK"
fi
r=$(curl http://git.oschina.net/hszdm/17ce/raw/master/status.txt)
if [ "$r" = "false" ]; then
  reboot
else
   echo "17 OK"
fi
